import { _ } from "core-js"

export default {
    min: 0,
    max: 100,
    random: function (length) {
        return ['1', '+', '2']
    },
    next: function (length) {
        while (true) {
            let result = this.random(length);
            const q = result.join('');
            const a = eval(q);
            if (a >= this.min && a <= this.max) {
                return result;
            }
        }
    },
}